@extends('base')
@section('title', 'page.title')
@section('csses')
<style type="text/css">
    p {
        margin-bottom: 0px;
        font-size: 13px;
    }
    a {
        color: #333;
    }
</style>
@endsection
@section('content')
    <div>
        @if(isset($pages))
            @foreach($pages as $key => $value)
                <div style="margin-left: 20px;">
                    <b>{{ $value['title'] }}</b>
                </div>
                <hr style="height:1px;border:none;border-top:1px solid #555555;margin-left: 20px;margin-right: 20px;"/>
                <div style="margin:0px 20px;padding: 0px;">
                   {!! $value['content'] !!}
                </div>
            @endforeach
        @else
            @foreach($editorials as $value)
                @if($loop->first || !$value)
                <div style="margin-left: 15px;">
                    <b>Editorial Policies</b>
                </div>
                <hr style="height:1px;border:none;border-top:1px solid #555555;margin-left: 16px;margin-right: 16px;" />
                @endif
                <div style="margin-left: 15px;padding: 0px;font-size: 13px;margin-bottom: 10px;">
                   <span>>></span>&nbsp;<a href="{{ action('PageController@editorial', ['id' => $value->id]) }}">{{ $value->title }}</a>
                </div>
            @endforeach
        @endif
    </div>
@endsection